<template>
   <div id="app">
     <router-view />
    <div id="nav">
       <router-link to="/Home"><span id="dangao"></span> <span>蛋糕</span> </router-link> 
      <router-link to="/flower"><span id="xianhua"></span> <span>鲜花</span> </router-link>
      <router-link to="/Bestie"><span id="lipin"></span> <span>礼品</span> </router-link> 
      <router-link to="/My"> <span id="wode"></span> <span>我的</span> </router-link>
    </div>
   
  </div>
</template>

<script>
export default {

}
</script>

<style scoped>
#nav{
  width: 100%;
  height: 0.7rem;
  display:flex;
  justify-content: space-between;
  background-color:white;
  position: fixed;
  bottom: 0;
  /* line-height: 0.5rem; */
}
#nav a {
  width: 24%;
  display: block;
  font-weight: bold;
  color: #2c3e50;
  font-size: 0.15rem;
  border-right: 2px solid black;
}
#nav a.router-link-exact-active {
 
  color: #42b983;
}
span{
  text-align: center;
  display: block;
  width:100% ;
  height: 49%;
  /* border: 1px solid black; */
}
#dangao{
  background: url("../../../public/my/dangao.png")no-repeat;
  background-size: 0.4rem;
  background-position: 49% 10%;
}
#xianhua{
  background: url("../../../public/my/xianhua.png")no-repeat;
 background-size: 0.3rem;
  background-position: 49% 50%;
}
#lipin{
  background: url("../../../public/my/lipin.png")no-repeat;
  background-size: 0.5rem;
  background-position: 49% 50%;
}
#wode{
  background: url("../../../public/my/wode.png")no-repeat;
  background-size: 0.3rem;
   background-position: 49% 50%;
}

</style>